<?php
/*
 *  @author Nicolas Genevaux
 * (c)nige 2008
 */
	include_once($RACINE.'inc/cla.inscrit.php');
	include_once($RACINE.'inc/cla.detailinscrit.php');
	include_once($RACINE.'inc/fct.utils.php');
	include_once($RACINE.'inc/fct.basedonnee.php');
	include_once($RACINE.'inc/sql.inscrit.php');
	include_once($RACINE.'inc/sql.detailinscrit.php');
	include_once($RACINE.'inc/var.pages.php');
	if(isset($_SESSION['ID_CONECT'])) {
		$INSCRIT = new inscrit(doSQL($INSCRIT_SELECT,array(0=>"'".$_SESSION['ID_CONECT']."'")));
		$INSCRIT->detailinscrit = new detailinscrit(doSQL($DETAILINSCRIT_SELECT,array(0=>"'".$_SESSION['ID_CONECT']."'")));
		include($RACINE.'texte/include_haut-connect.php');
		if(!isset($INSCRIT->login) || $INSCRIT->login=="") {
			isset($_SESSION['ID_CONECT']);
			redirect($PAGE_DECONNEXION);
		}
	}
	else {
		include($RACINE.'texte/include_haut-formconnect.php');
	}
?>
